<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="paperList.title"/></title>
    <meta name="heading" content="<fmt:message key='paperList.heading'/>"/>
    <meta name="menu" content="PaperMenu"/>
</head>

<c:set var="buttons">
    <input type="button" style="margin-right: 5px" class="button"
        onclick="location.href='<c:url value="/editPaper.html"/>'"
        value="<fmt:message key="button.add"/>"/>

    <input type="button" class="button" onclick="location.href='<c:url value="/mainMenu.html"/>'"
        value="<fmt:message key="button.done"/>"/>
</c:set>

<c:out value="${buttons}" escapeXml="false" />

<display:table name="papers" class="table" requestURI="" id="paperList" export="true" pagesize="25">
    <display:column property="paperId" sortable="true" href="editPaper.html" media="html"
        paramId="paperId" paramProperty="paperId" titleKey="paper.paperId"/>
    <display:column property="paperId" media="csv excel xml pdf" titleKey="paper.paperId"/>
    <display:column property="createTime" sortable="true" titleKey="paper.createTime"/>
    <display:column property="endTime" sortable="true" titleKey="paper.endTime"/>
    <display:column property="startTime" sortable="true" titleKey="paper.startTime"/>

    <display:setProperty name="paging.banner.item_name"><fmt:message key="paperList.paper"/></display:setProperty>
    <display:setProperty name="paging.banner.items_name"><fmt:message key="paperList.papers"/></display:setProperty>

    <display:setProperty name="export.excel.filename"><fmt:message key="paperList.title"/>.xls</display:setProperty>
    <display:setProperty name="export.csv.filename"><fmt:message key="paperList.title"/>.csv</display:setProperty>
    <display:setProperty name="export.pdf.filename"><fmt:message key="paperList.title"/>.pdf</display:setProperty>
</display:table>

<c:out value="${buttons}" escapeXml="false" />

<script type="text/javascript">
    highlightTableRows("paperList");
</script>
